<?php

	Router::connect('/', array('controller' => 'noticias', 'action' => 'index'));
/**
 * ...and connect the rest of 'Pages' controller's urls.
 */
 	Router::connect('/admin', array('controller' => 'agents', 'action' => 'login','admin' => true));
	Router::connect('/pages/*', array('controller' => 'pages', 'action' => 'display'));



//Modulos de usuarios
		Router::connect('/registro', array('controller' => 'users', 'action' => 'add'));
		Router::connect('/login', array('controller' => 'users', 'action' => 'login'));
		Router::connect('/salir', array('controller' => 'users', 'action' => 'logout'));
		Router::connect('/ver-mi-perfil', array('controller' => 'users', 'action' => 'view'));
		Router::connect('/ver-ultimos-anuncios', array('controller' => 'clasificados', 'action' => 'ultimos_clasificados'));
		Router::connect('/enviar-anuncio-gratuito', array('controller' => 'clasificados', 'action' => 'add'));
		Router::connect('/ver-categorias/*', array('controller' => 'categorias', 'action' => 'ver_categoria'));
		Router::connect('/ver_clasificados/*', array('controller' => 'clasificados', 'action' => 'ver_clasificados'));
		Router::connect('/ver-mis-anuncios', array('controller' => 'clasificados', 'action' => 'index'));
		Router::connect('/modificar-el-clasificado/*', array('controller' => 'clasificados', 'action' => 'edit'));
		Router::connect('/borrar-el-clasificado/*', array('controller' => 'clasificados', 'action' => 'delete'));
		Router::connect('/enviar-anuncio-destacado/*', array('controller' => 'clasificados', 'action' => 'pago'));
		Router::connect('/agregar-destacado-metodo-de-pago/*', array('controller' => 'clasificados', 'action' => 'add_destacado'));

		Router::connect('/agregar-foto-al-clasificado/*', array('controller' => 'fotos', 'action' => 'add'));
		Router::connect('/borrar-foto/*', array('controller' => 'fotos', 'action' => 'delete'));
//Menu Principal
	      Router::connect('/enlaces', array('controller' => 'enlaces', 'action' => 'index'));
	      Router::connect('/casos-de-exito', array('controller' => 'casos', 'action' => 'index'));



//paginas estaticas

	Router::connect('/quienes-somos', array('controller' => 'pages', 'action' => 'display','quienes'));
	Router::connect('/portafolio', array('controller' => 'pages', 'action' => 'display','portafolio'));
	Router::connect('/contacto*', array('controller' => 'contact', 'action' => 'index'));

//Paginas de Aterrizaje

	Router::connect('/publicidad-en-tricivallas', array('controller' => 'pages', 'action' => 'display','tricivallas'));
	Router::connect('/diseno-y-programacion-de-sitios-web', array('controller' => 'pages', 'action' => 'display','diseno'));
	Router::connect('/optimizacion', array('controller' => 'pages', 'action' => 'display','optimizacion'));
	Router::connect('/producto-destacado/*', array('controller' => 'productos', 'action' => 'view'));



?>

